<template>
    <view class="g-desc">
        <mp-html :content="content" />
    </view>
</template>

<script setup>
import mpHtml from '@/components/mp-html/components/mp-html/mp-html.vue'
const { proxy } = getCurrentInstance()
const data = reactive({
    content: ''
})
const { content } = toRefs(data)
onMounted(() => {
    getData()
})

async function getData() {
    let res = await proxy.$api('ConfigDesc', {
        key: 'buy_read'
    })
    if (res.code === 0) {
        data.content = res.data.content || ''
    }
}
</script>

<style scoped lang="scss">
.help {
    width: 100%;
    height: auto;
}
</style>
